package cn.wolfcode.mapper;

import cn.wolfcode.domain.Department;
import cn.wolfcode.qo.QueryObject;
import org.apache.ibatis.annotations.MapKey;

import java.util.List;
import java.util.Map;

public interface DepartmentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Department record);

    Department selectByPrimaryKey(Long id);

    List<Department> selectAll();

    int updateByPrimaryKey(Department record);

    List<Department> queryPage(QueryObject qo);

    /*@MapKey("name")
    Map<String,Long> selectImport();*/

    //根据name找id
    Department selectByName(String name);
}